<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>网站信息</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">管路员列表</strong>&emsp;<a style="color: #3a4bfb;font-weight: bold " href="javascript:history.go(-1)">返回上一步</a></div>
    <div class="padding border-bottom">
        <!--<a class="button border-yellow" href=""><span class="icon-plus-square-o"></span> 添加内容</a>-->
    </div>
    <div id="div">
        <table class="table table-hover text-center">
            <tr>
                <th width="10%">管理员姓名</th>
                <th>管理员邮箱</th>
                <th width="250">操作</th>
            </tr>
            <tr>
                <td>第三方</td>
                <td>得到</td>
                <td>
                    <div class="button-group">
                        <a type="button" class="button border-main" href="{:url('Staffsaves/index')}"><span
                                class="icon-edit"></span>修改</a>
                        <a class="button border-red" onclick="return del()"><span class="icon-trash-o"></span> 删除</a>
                    </div>
                </td>
            </tr>
        </table>
    </div>

</div>
<div>
</div>
</body>
<script>
    function del(id) {
        if (confirm("您确定要删除吗?")) {
            $.ajax({
                type: "post",
                url: "{:url('Stafflist/staffdel')}",
                data: {"id": id},
                dataType: "json",
                success: function (a) {
                    if (a) {
                        alert("删除成功");
                        window.location.replace("{:url('Stafflist/index')}")
                    } else {
                        alert("删除失败")
                    }
                }
            })
        }
    }
</script>
</html>